<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/common/default.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>申请列表</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui" />
    <meta name="format-detection" content="telephone=no, email=no" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <link rel="shortcut icon" href="${ctx}/style/favicon.ico" />
    <link rel="stylesheet" href="${ctx}/style/mui/css/mui.css">
    <link rel="stylesheet" href="${ctx}/style/mui/css/app.css" />
    <link rel="stylesheet" href="${ctx}/style/mui/css/mui.picker.css" />
    <link rel="stylesheet" href="${ctx}/style/mui/css/mui.picker.min.css" />
    <link rel="stylesheet" href="${ctx}/style/mui/css/mui.poppicker.css" />
    <link rel="stylesheet" href="${ctx}/style/css/base.css?v=1">
    <link rel="stylesheet" href="${ctx}/style/css/css.css?v=1">
     <script src="${ctx}/style/mui/js/mui.js"></script>
    <script src="${ctx}/style/mui/js/mui.picker.js"></script>
    <script src="${ctx}/style/mui/js/mui.picker.min.js"></script>
    <script src="${ctx}/style/mui/js/mui.poppicker.js"></script>
    <script src="${ctx}/style/js/jquery.js"></script>
    <script src="${ctx}/style/js/common.js?v=1"></script>
    <!-- footer end -->
    <script src="js/verify.js"></script>
    <script type="text/javascript" src="${ctx}/static/threadui/js/jquery-1.11.3.js"></script>
	<script type="text/javascript" src="${ctx}/static/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${ctx}/static/tools/jquery-validationEngine/jquery.validationEngine.js"></script>
    <script type="text/javascript" src="${ctx}/static/tools/jquery-validationEngine/jquery.validationEngine-cn.js"></script>
</head>
<!-- header end -->

<body>
    <div class="title_bar">
        <h3>申请列表</h3>
        <a href="javascript:history.go(-1);" class="go_back"></a>
    </div>
    <div class="search_box">
        <div class="mui-input-row mui-search">
            <input type="search" class="mui-input-clear" placeholder="">
        </div>
    </div>
    <div class="apply_list">
    <c:forEach var="res" items="${res.data.rows}">
	    <c:choose>
		       <c:when test="${res.state==0}">
		          <a href="javascript:getemploy('${res.applyId}')" class="cell arrow_right waiting">    
		       </c:when>
		       <c:when test="${res.state==3}">
		           <a href="javascript:getemploy('${res.applyId}')" class="cell arrow_right pass"> 
		       </c:when>
		       <c:otherwise>
		             <a href="javascript:getemploy('${res.applyId}')" class="cell arrow_right not_pass">
		       </c:otherwise>
		</c:choose>
        <div class="icon"><i></i></div>
        <div class="title">${res.mileageCode}
         <c:choose>   
            <c:when test="${res.state==0}">
		          <span class="status"><i></i>待申批</span>
		       </c:when>
		       <c:when test="${res.state==3}">
		          <span class="status"><i></i>已申批</span>
		       </c:when>
		       <c:otherwise>
		          <span class="status"><i></i>未申批</span>
		       </c:otherwise>
           </c:choose>   
             </div>
            <div class="info">${res.applyContent}</div>
        </a>
     </c:forEach>
    </div>
    <!-- footer start -->
    
    <script>
    function getemploy(applyId){
    	window.location.href = "${ctx}/wemployapply/wxgetemploy?applyId="+applyId;
    }
    </script>
</body>

</html>
